package cn.likole.oj.bean;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;

/**
 * Created by likole on 8/1/18.
 * 物品
 */
@Table("goods")
public class Goods {

    /**
     * 物品id
     */
    @Id
    private int goodsId;

    /**
     * 物品名称
     */
    @Name
    private String goodsName;

    /**
     * 描述
     */
    @Column
    private String description;

    /**
     * 最大拥有数,-1无上限
     */
    @Column
    private int capacity;

    /**
     * 叠加数量
     */
    @Column
    private int overlieNum;

    /**
     * 物品种类
     */
    @Column
    private int type;

    /**
     * 玩家类型
     */
    @Column
    private int playerType;

    /**
     * 购买价格
     */
    @Column
    private int buyPrice;

    /**
     * 购买消耗装备碎片
     */
    @Column
    private int fragment;

    /**
     * 出售价格,-1不可出售
     */
    @Column
    private int sellPrice;

    /**
     * c熟练度加成
     */
    @Column
    private int addC;

    /**
     * c++熟练度加成
     */
    @Column
    private int addCP;

    /**
     * java熟练度加成
     */
    @Column
    private int addJ;

    /**
     * python熟练度加成
     */
    @Column
    private int addPY;

    public int getFragment() {
        return fragment;
    }

    public void setFragment(int fragment) {
        this.fragment = fragment;
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    public int getOverlieNum() {
        return overlieNum;
    }

    public void setOverlieNum(int overlieNum) {
        this.overlieNum = overlieNum;
    }

    public int getBuyPrice() {
        return buyPrice;
    }

    public void setBuyPrice(int buyPrice) {
        this.buyPrice = buyPrice;
    }

    public int getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(int sellPrice) {
        this.sellPrice = sellPrice;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getPlayerType() {
        return playerType;
    }

    public void setPlayerType(int playerType) {
        this.playerType = playerType;
    }

    public int getAddC() {
        return addC;
    }

    public void setAddC(int addC) {
        this.addC = addC;
    }

    public int getAddCP() {
        return addCP;
    }

    public void setAddCP(int addCP) {
        this.addCP = addCP;
    }

    public int getAddJ() {
        return addJ;
    }

    public void setAddJ(int addJ) {
        this.addJ = addJ;
    }

    public int getAddPY() {
        return addPY;
    }

    public void setAddPY(int addPY) {
        this.addPY = addPY;
    }
}
